package com.amado.course15Constructor;

public class  Goods{
	private String goodsName;
	private Integer price;

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Goods() {
		super();
	}

	public Goods(String goodsName) {
		super();
		this.goodsName = goodsName;
	}

	public Goods(String goodsName, Integer price) {
		super();
		this.goodsName = goodsName;
		this.price = price;
	}

	public static void main(String[] args) {
		Goods goods = new Goods();
		goods.setGoodsName("商品1");
		goods.setPrice(123);
		
		System.out.println(goods.getGoodsName());
		Goods goodsTwo = new Goods("商品2",100);
		System.out.println(goodsTwo.getGoodsName());
	}
}
